package com.xjh.basestudy.javabase.thread;

public class MyThread1 extends Thread {
    public MyThread1() {
    }
//创建该类对象时传入一个字符串
    public MyThread1(String name) {
        super(name);
    }

    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
            System.out.println(getName()+i);


        }
    }
}
